package exam.wzb.jsp.dao;

import exam.wzb.jsp.model.Account;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

public interface AccountDao {

    void addAccount(Account account);
    Account findAccountById(int aid);
    void updateAccount(Account account);
    List<Account> findAllAccounts();
    public void transfer(int fromAccountId, int toAccountId1, int toAccountId2, double amount) throws SQLException;
    Account findAccountById(int id);
    void updateAccountBalance(Account account);

}
